# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=vanessa_adt
pkgver=0.0.9
pkgrel=4
pkgdesc="Library of abstract data types"
url="https://projects.horms.net/projects/vanessa/"
arch="all"
license="LGPL-2.0-or-later"
depends_dev="vanessa_logger-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://projects.horms.net/projects/vanessa/download/vanessa_adt/$pkgver/vanessa_adt-$pkgver.tar.bz2"

prepare() {
	update_config_sub
	default_prepare
}

build() {
	LDFLAGS="$LDFLAGS -lvanessa_logger" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5066bb57c3ee314531cc5a45d5ac670277e98a868df46c7816f8b1049be3306be3711e62f397b34746fd7d13bbcbe109346704f26c8f3bd39754979070dd1cc4  vanessa_adt-0.0.9.tar.bz2"
